#include <iostream>
#include <fstream>
#include <math.h>

using namespace std;
bool esPrimo(long int a);
int main()
{
 long int a =2 ;
 long long int sol =0;
 long long int sol1 =0;

    while (a<2000000)
    {
        if (esPrimo(a))
        {
            sol = sol+ a;
            }

        a++;
    }

cout << sol << "(" << a << ")" << endl;


}


bool esPrimo(long int a)
{
    int i = 2;
 while (i <= (static_cast<long int>(sqrt(a)))){
     if (a%i == 0) return 0;
     i++;
     }
 return 1;


}
